package com.groupfive.service;

import com.github.pagehelper.PageInfo;
import com.groupfive.pojo.Account;
import com.groupfive.pojo.Admin;

import java.util.List;

public interface AdminService {

    int add(Admin admin);

    int update(Admin admin);

    int deleteById(Long id);

    void deleteBatch(List<Long> ids);

    List<Admin> selectAll(Admin admin);

    Admin selectById(Long id);

    PageInfo<Admin> selectPage(Admin admin, Integer pageNum, Integer pageSize);

    public Admin login(Account account);

    void updatePassword(Account account);
}
